package com.wuwei.elearning.question.mapper;

import com.wuwei.elearning.question.domain.Subject;
import com.wuwei.elearning.question.domain.UserRelationSubject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wuwei
 * @since 2025-03-13
 */
public interface UserRelationSubjectMapper extends BaseMapper<UserRelationSubject> {

    void myBatchInsert(@Param("subjectId") Long subjectId, @Param("userAccounts") Long[] userAccounts);

    List<Long> getAccountsBySubjectIds(Long subjectId);

    void myBatchInsertByAccount(@Param("account") Long account, @Param("subjectIds") List<Long> subjectIds);

    List<Long> getSubjectsByAccount(Long account);
}
